package cloud.simple.service.domain;

import cloud.simple.service.dao.UserDao;
import cloud.simple.service.model.User;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.util.List;

/**
 * Created by VIC.Huang on 2016/9/20.
 */
@Service
@Transactional
public class UserService {
    @Autowired
    private UserDao userMapper;

    public List<User> searchAll() {
        List<User> list = userMapper.findAll();
        return list;
    }
}
